﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Happy.Application.Query
{
    /// <summary>
    /// 扩展类。
    /// </summary>
    public static class SorterExtentions
    {
        internal static List<string> ToOrderClauses(this IEnumerable<Sorter> that)
        {
            if (that == null)
            {
                return new List<string>();
            }

            return that.Select(x => x.ToSorterClause()).ToList();
        }
    }
}
